//
//  ByBaseVC+Log.m
//  chequanbao_ios
//
//  Created by pro on 17/6/2.
//  Copyright © 2017年 com.itboye. All rights reserved.
//

#import "ByBaseVC+Log.h"

#import <objc/runtime.h>
#import <objc/objc.h>
#import <objc/message.h>


@implementation ByBaseVC (Log)

+ (void)load {
    
    Method  new = class_getInstanceMethod(self, @selector(viewWillAppearLog:));
    Method old = class_getInstanceMethod(self, @selector(viewWillAppear:));
    method_exchangeImplementations(new, old);
}

- (void)viewWillAppearLog:(BOOL)animated {
    
#if DEBUG
    NSLog(@"class name:%@", self.class);
#endif
    [self viewWillAppearLog:animated];
}



@end
